]> dgit.raspbian.org Git - gnome-shell.git/commit
scroll-view: Add proper smooth scrolling
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 4 Nov 2012 15:10:50 +0000 (10:10 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 20 Dec 2012 13:40:04 +0000 (08:40 -0500)
commit06dc12e217f0c2e94c761544b113ea8d24d0f19c
tree07c5a37fcb801eff482cd458166a04554e36014e
parent36edff9e15029f69e7c29e64092672d455026df0
scroll-view: Add proper smooth scrolling

The code here before was added as dummy code to satisfy an error
in the missing switch, and wasn't ever tested due to the lack of XI2
in mutter. Use the same math as GtkRange does to calculate scroll bar
positions from raw XI2 deltas to allow for proper smooth scrolling.

https://bugzilla.gnome.org/show_bug.cgi?id=687573
src/st/st-adjustment.c
src/st/st-adjustment.h
src/st/st-scroll-view.c